package com.bee.web.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String format(long date) {
        return simpleDateFormat.format(new Date(date));
    }

    public static String format(Date date) {
        return simpleDateFormat.format(date);
    }

}
